package com.jiuli_travel.attraction_service.model.dto.attraction_comment;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
public class AttractionCommentInsertRequest {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * attractionId
     */
    @TableField("attraction_id")
    private Long attractionId;

    /**
     * 关联的1级评论id，如果是一级评论，则值为0
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 回复的评论id
     */
    @TableField("answer_id")
    private Long answerId;

    /**
     * 回复的内容
     */
    @TableField("content")
    private String content;

    /**
     * 点赞数
     */
    @TableField("liked")
    private Integer liked;

    /**
     * 状态，0：正常，1：被举报，2：禁止查看
     */
    @TableField("status")
    private Boolean status;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
}
